﻿namespace Anley.DomainDrivenDesign.Contract.Enums;

/// <summary>
/// 结果码枚举
/// </summary>
public enum AneResultCode
{
    /// <summary>
    /// 成功
    /// </summary>
    Success = 200,

    /// <summary>
    /// 失败
    /// </summary>
    Fail = 300,

    /// <summary>
    /// 语义有误
    /// </summary>
    BadRequest = 400,

    /// <summary>
    /// 未认证
    /// </summary>
    Unauthorized = 401,

    /// <summary>
    /// 拒绝执行
    /// </summary>
    Forbidden = 403,

    /// <summary>
    /// 数据不存在
    /// </summary>
    NotFound = 404,

    /// <summary>
    /// 请求超时
    /// </summary>
    RequestTimeout = 408,

    /// <summary>
    /// 操作冲突
    /// </summary>
    Conflict = 409,

    /// <summary>
    /// 内部错误
    /// </summary>
    InternalServerError = 500
}